import request from '@/utils/request'

// 添加点赞
export function addLike(infoId) {
  return request({
    url: `/healthSys/like/${infoId}`,
    method: 'post'
  })
}

// 取消点赞
export function deleteLike(infoId) {
  return request({
    url: `/healthSys/like/${infoId}`,
    method: 'delete'
  })
}

// 获取点赞状态
export function getLikeStatus(infoId) {
  return request({
    url: `/healthSys/like/check/${infoId}`,
    method: 'get'
  })
}

// 获取点赞数量
export function getLikeCount(infoId) {
  return request({
    url: `/healthSys/like/count/${infoId}`,
    method: 'get'
  })
} 